<?php
/**
 * 品牌中心文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	brand
 */
if (is_object($objWebInit)) {
	if(!isset($objbrand)){
		include_once(__WEB_ROOT."/brand/class/brand.class.php");
		include_once(__WEB_ROOT."/brand/config/var.inc.php");
		$objbrand = new brand();
		$objbrand->setDBG($arrGPdoDB);
		$objbrand->arrGPic=$arrGPic;
		if(is_object($objWebInit->db)) $objbrand->db = $objWebInit->db;
		else $objbrand->db();
	}

	$arrTopbrand = array();
	$arrTopbrand = $objbrand->getRandInfoList("where pass=1 and thumbnail!=''","  ORDER BY recommendflag DESC,submit_date DESC", 0, 30,true,null,false);

	//print_r($arrTopbrand);
	// 输出到模板
	$arrMOutput["smarty_assign"]['brandImg'] = $objbrand->arrGPic['FileCallPath'];
	$arrMOutput["smarty_assign"]['arrTopbrand'] = $arrTopbrand;
}
?>